document.querySelector('#logout').addEventListener('click', function () {
    if (confirm('您确定要退出吗？')) {
        location.href = '/admin/logout';
    }
});